//左菜单，按标题找左菜单
import { Link } from "./router/index";
export default    function Navbar(props) {
    const navdata = props.ment.filter(item=>item.name==props.name);
    const sonment = navdata[0].subMenus;
    return (<div id="navbar">
        <div class="navbar-header">
            ≡ {navdata[0].name}
        </div>
        <div class="navbar-bodyer">
            {
                sonment.map(ment=>{
                    return <Link activeClassName='selected'   href={ment.url} > {ment.name}</Link>
                })
            }
            </div>
        </div>
    )
}
